package com.lining.orangeservice.service;

import com.lining.orangeservice.entity.po.Permission;

import java.util.List;

public interface RoleService {

    void assignPermissionsToRole(Long roleId, List<Long> permissionIds);

    void removePermissionsFromRole(Long roleId, List<Long> permissionIds);

    List<Permission> getPermissionsByRoleId(Long roleId);

    List<Permission> getPermissionsByUserId(Long id);
}
